-
Notifications
You must be signed in to change notification settings - Fork 80
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix #245: return error for NaN in naive bayes #246
base: development
Are you sure you want to change the base?
Conversation
cc: @chriamue |
Codecov Report
📣 This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more @@ Coverage Diff @@
## development #246 +/- ##
===============================================
+ Coverage 44.50% 44.64% +0.13%
===============================================
Files 85 85
Lines 7226 7235 +9
===============================================
+ Hits 3216 3230 +14
+ Misses 4010 4005 -5
... and 8 files with indirect coverage changes Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
* general behaviour has been kept unchanged according to original tests in `mod.rs` * aka: error is returned only if all the predicted probabilities are NaN
@chriamue please review |
Fix #245
Check if
log_likehood
is NaN and return an error as aResult
. Add test as suggested.PS. the test suggested is in conflict with the original expected behaviour (see tests in
mod.rs
) so it couldn't be implemented. A better handling of NaN has been implemented instead, following the original behaviour.